package com.aaa.service.impl;

import com.aaa.dao.S_NoticeDao;
import com.aaa.service.S_NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service
public class S_NoticeServiceImpl implements S_NoticeService {
    @Autowired
    private S_NoticeDao dao;


    /**  分页查询数据
     * @param map
     * @return
     */
    @Override
    public List<Map> selectNotice(Map map) {
        return dao.selNotice(map);
    }

    /**  获取总条数
     * @param map
     * @return
     */
    @Override
    public Integer getCount(Map map) {
        return dao.getCount(map);
    }

    @Override
    public int updateNotice(Map map) {
        return dao.updateNotice(map);
    }

    @Override
    public int addNotice(Map map) {
        return dao.addNotice(map);
    }

    @Override
    public int delNotice(Integer id) {
        return dao.delNotice(id);
    }


}
